<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>菜单选择</title>
<link href="css/table.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<style type="text/css">
	.table td{word-break: keep-all;white-space:nowrap;}
</style>
<script type="text/javascript">
function submitMenu(){
	var menu = $("input[name='radioMenu']");
	var nameMenu=$("#nameMenu").val();
	var cc=0;
	for(var i=0;i<menu.length;i++){
		if(menu[i].checked){
			opener.saveMenu(menu[i].value,nameMenu);
			window.close();
			cc++;
			return;
		}
	}
	if(cc==0){
		alert("请选择");
	}
}
</script>
</head>
<body>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="98%">
  <tbody>
  <tr>
    <td style="background: url('image/wsoa_window_002.gif');" width="1"></td>
    <td style="background: url('image/wsoa_window_002.gif');"><table border="0" cellpadding="0" cellspacing="0">
      <tbody><tr>
        <td align="center" style="background: url('image/wsoa_window_002.gif');" width="10"><img src="image/center_19.gif"></td>
        <td align="center" style="background: url('image/wsoa_window_002.gif');"></td>
        <td>系统管理 &gt; 个人设置 &gt; 快捷便签 &gt; <a href="addImg.action?name=${name }">选择菜单</a></td>
        </tr>
    </tbody>
    </table></td>
    <td style="background: url('image/wsoa_window_002.gif');" width="1"></td>
  </tr>
  <tr>
    <td style="background: url('image/wsoa_window_010.gif');"  width="1">&nbsp;</td>
    <td>

<input type="hidden" value="${name }" id="nameMenu">
<table class="table" style="width: auto;margin-top:10px" cellpadding="2" cellspacing="0" >
		${selectMenu}
</table>
<div style="margin-top: 10px">
			<input onclick="submitMenu()" type="button" value="提交">
</div>

</td>
<td style="background: url('image/wsoa_window_006.gif');"  width="1">&nbsp;</td></tr>
  <tr>
    <td height="1" width="1"><img src="image/wsoa_window_009.gif" height="16" width="14"></td>
    <td style="background: url('image/wsoa_window_008.gif');" height="1"></td>
    <td height="1" width="1"><img src="image/wsoa_window_007.gif" height="16" width="12"></td>
  </tr>
</tbody>
</table>
</body>
</html>
